
<div class="span6">
    <ul class="nav nav-tabs" id="myTab">
        <li><a href="#profile">Profile</a></li>
        <li><a href="#contact">Contact Information</a></li>
        <li><a href="#social">Social</a></li>
    </ul>

    <div class="tab-content">
        <div class="tab-pane" id="profile">
<!--            <div class="control-group">
                <label class="control-label" for="filebutton">Photo </label>
                <div class="controls">
                    <?php
                    if (isset($user->tof)) {
                        echo $user->tof;
                    } else {
                        ?>
                        <input id="filebutton" name="tof" class="input-file" type="file">

                        <?php
                    }
                    ?>
                </div>
            </div>-->

            <!-- Text input-->
                <div class="span2 label-profile" >First name</div>
                <div class="span2 value-profile">
                    <?php
                    if (isset($user->firstname)) {
                        echo $user->firstname;
                    }
                    ?>
                </div>
                
            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="textinput">Last name</label>
                <div class="controls">
                    <?php
                    if (isset($user->lastname)) {
                        echo $user->lastname;
                    } else {
                        ?>
                        <input id="textinput" name="lastname" type="text" placeholder="Last name" class="input-small" required="">
                        <?php
                    }
                    ?>
                </div>
            </div>

            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="textinput">Email</label>
                <div class="controls">

                    <?php
                    if (isset($user->mail)) {
                        echo $user->mail;
                    } else {
                        ?>
                        <input id="textinput" value="" name="email" type="text" placeholder="Email" class="input-xlarge" required="">
                        <?php
                    }
                    ?>

                </div>
            </div>

            <!-- Password input-->
            <div class="control-group">
                <label class="control-label" for="passwordinput">Password</label>
                <div class="controls">
                    <?php
                    if (isset($user->password)) {
                        echo $user->password;
                    } else {
                        ?>
                        <input id="passwordinput" name="password" type="password" placeholder="Password" class="input-xlarge" required="">
                        <?php
                    }
                    ?>

                </div>
            </div>

            <!-- Multiple Radios (inline) -->
            <div class="control-group">
                <label class="control-label" for="radios">Sexe </label>
                <div class = "controls">
                    <?php
                    if (isset($user->sexe)) {
                        echo $user->sexe == "F" ? "Woman" : "Man";
                    } else {
                        ?>

                        <label class="radio inline" for="radios-1">
                            <input type="radio" name="sexe" id="radios-1" value="M" /> 
                            Men
                        </label>
                        <label class="radio inline" for="radios-0">
                            <input  type="radio" name="sexe" id="radios-0" value="F" checked="checked">
                            Women
                        </label>


                        <?php
                    }
                    ?>
                </div>
            </div>

            <!-- Birthday input-->
            <div class="control-group">
                <label class="control-label" for="textinput">Birthday</label>

                <?php
                if (isset($user->birthday)) {
                    echo $user->birthday;
                } else {
                    ?>

                    <div class="input-append">
                        <input value="31/01/1995" 
                               style="cursor: pointer; background-color: white; width: 200px; margin-left: 21px;" 
                               readonly="readonly" name="birthday" 
                               type="text" placeholder="Birthday" class="input-xlarge birthday">
                        <button onclick="$('.birthday').val('');
                                return false;" class="btn">X</button>  
                    </div>
                    <?php
                }
                ?>

            </div>



            <!-- Textarea -->
            <div class="control-group">
                <label class="control-label" for="Presentation">Presentation</label>
                <div class="controls">    
                    <?php
                    if (isset($user->presentation)) {
                        echo $user->presentation;
                    } else {
                        ?>
                        <textarea id="Presentation" name="Presentation"></textarea>
                        <?php
                    }
                    ?>

                </div>
            </div>
        </div>

        <div class="tab-pane" id="contact">
            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="City">City</label>
                <div class="controls">
                    <?php
                    if (isset($user->city)) {
                        echo $user->city;
                    } else {
                        ?>
                        <input id="City" name="City" type="text" placeholder="City" class="input-xlarge">
                        <?php
                    }
                    ?>


                </div>
            </div>

            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="Country">Country</label>
                <div class="controls">
                    <?php
                    if (isset($user->country)) {
                        echo $user->country;
                    } else {
                        ?>
                        <input id="Country" name="Country" type="text" placeholder="Country" class="input-xlarge">
                        <?php
                    }
                    ?>
                </div>
            </div>

            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="Mobile">Mobile</label>
                <div class="controls">
                    <?php
                    if (isset($user->mobile)) {
                        echo $user->mobile;
                    } else {
                        ?>
                        <input id="Mobile" name="Mobile" type="text" placeholder="Mobile" class="input-xlarge">
                        <?php
                    }
                    ?>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="social">
            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="fb">Facebook URL</label>
                <div class="controls">
                    <?php
                    if (isset($user->fb)) {
                        echo $user->fb;
                    } else {
                        ?>
                        <input id="fb" name="fb" type="text" placeholder="Facebook URL" class="input-xlarge">
                        <p class="help-block">exemple : http://www.facebook.com/myprofileurl</p>
                        <?php
                    }
                    ?>

                </div>
            </div>

            <!-- Text input-->
            <div class="control-group">
                <label class="control-label" for="twitter">Twitter Profile</label>
                <div class="controls">
                    <?php
                    if (isset($user->twitter)) {
                        echo $user->twitter;
                    } else {
                        ?>
                        <input id="twitter" name="twitter" type="text" placeholder="Twitter Profile" class="input-xlarge">
                        <?php
                    }
                    ?>
                </div>
            </div>

        </div>
    </div>

    <script>
                        $('#myTab a').click(function(e) {
                            e.preventDefault();
                            $(this).tab('show');
                        })

    </script>

    <!--
        <div class="control-group">
            <label class="control-label" for="saveprofile"></label>
            <div class="controls">
                <button id="saveprofile" name="saveprofile" class="btn btn-primary">Save All</button>
            </div>
        </div>-->
</div>


